package com.dlu.safe_construction.service;

import com.dlu.safe_construction.common.ApiResult;
import com.dlu.safe_construction.model.Owner;
import java.util.List;

/**
 * Created by  lijiaxing on 2022/3/30 20:54
 *
 * @author lijiaxing
 */
public interface OwnerService{

    ApiResult<Void> add(Owner owner);

    ApiResult<Void> deleteBy(String key,Integer byWhat);

    ApiResult<Void> edit(Owner owner);

    ApiResult<List<Owner>> list();

    ApiResult<List<Owner>> searchBy(String key, Integer byWhat);

}
